#!/usr/bin/env node
const cp=require('child_process');
console.log(`I am father process:${process.pid}`);
process.on('messagr',(data)=>{
  console.log(`I have a son  :${data}`);
});
let dau=cp.fork('./11-ipc-child.js'),
    son=cp.fork('./11-ipc-child.js');
setTimeout(()=>{
  son.send('work hard');
},2000);
setTimeout(()=>{
  dau.sen('day up');
},3000);
setTimeout(()=>{
  dau.kill('SIGINT');
  son.kill('SIGINT');
},5000);





